home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 44 / Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso / -in_the_mag- / basics / amos / intuiextend20b.lha / distribution / exemples / RtDirReq.asc < prev    next >
Text File  |  1980-03-07  |  1KB  |  44 lines

  1. '**************************************
  2. '                                     *
  3. '     IntuiExtend.Lib 2.0/@1995-98    *
  4. '                                     *
  5. '          by CIERP Philippe.         *
  6. '                                     *
  7. '          from AMIGAzette 83         *
  8. '                                     *
  9. '**************************************
  10. '
  11. ' Command
  12. '  -Rt Lib Open  
  13. '  -Rt Dir Req 
  14. '  -Rt Get Dir$  
  15. '  -Rt Lib Close 
  16. '  
  17. Screen Open 0,640,256,2,$8000
  18. Curs Off : Flash Off : Cls 0
  19. Palette $0,$FFF : Print 
  20. Amos To Back 
  21. '
  22. 'Ouverture de la reqTools.library
  23. E=Rt Lib Open
  24. 'Ouverture impossible
  25. If E=0 Then End 
  26. 'Sauvegarde du 'PathAmos'
  27. _DIR$=Dir$
  28. 'Appel au DirRequester 
  29. RR=Rt Dir Req("Sélectionnez un répertoire SVP...",_DIR$,2)
  30. 'Ok=1 / Cancel/Erreur/CloseGadget=0
  31. If RR=1
  32.    Print "Bouton 'Ok' sélectionné"
  33. Else 
  34.    Print "Bouton 'Cancel' sélectionné"
  35. End If 
  36. 'Replacer le 'PathAmos'
  37. Dir$=Rt Get Dir$
  38. Print 
  39. Print "Directory:";Dir$
  40. 'Refermer la librairie 
  41. Rt Lib Close 
  42. Amos To Front 
  43. Wait Key 
  44.